Optimal. Leaf size=65 \[ -\frac{1}{2} (1-i)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{1-i} \sqrt{x}}{\sqrt{x+1}}\right )-\frac{1}{2} (1+i)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{1+i} \sqrt{x}}{\sqrt{x+1}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.048894, antiderivative size = 65, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 3, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.15, Rules used = {910, 93, 208} \[ -\frac{1}{2} (1-i)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{1-i} \sqrt{x}}{\sqrt{x+1}}\right )-\frac{1}{2} (1+i)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{1+i} \sqrt{x}}{\sqrt{x+1}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 910
Rule 93
Rule 208
Rubi steps
\begin{align*} \int \frac{\sqrt{x}}{\sqrt{1+x} \left (1+x^2\right )} \, dx &=\int \left (-\frac{1}{2 (i-x) \sqrt{x} \sqrt{1+x}}+\frac{1}{2 \sqrt{x} (i+x) \sqrt{1+x}}\right ) \, dx\\ &=-\left (\frac{1}{2} \int \frac{1}{(i-x) \sqrt{x} \sqrt{1+x}} \, dx\right )+\frac{1}{2} \int \frac{1}{\sqrt{x} (i+x) \sqrt{1+x}} \, dx\\ &=-\operatorname{Subst}\left (\int \frac{1}{i-(1+i) x^2} \, dx,x,\frac{\sqrt{x}}{\sqrt{1+x}}\right )+\operatorname{Subst}\left (\int \frac{1}{i+(1-i) x^2} \, dx,x,\frac{\sqrt{x}}{\sqrt{1+x}}\right )\\ &=-\frac{1}{2} (1-i)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{1-i} \sqrt{x}}{\sqrt{1+x}}\right )-\frac{1}{2} (1+i)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{1+i} \sqrt{x}}{\sqrt{1+x}}\right )\\ \end{align*}
Mathematica [A] time = 0.0614122, size = 63, normalized size = 0.97 \[ \frac{1}{2} \left (-(-1+i)^{3/2} \tan ^{-1}\left (\sqrt{-1+i} \sqrt{\frac{x}{x+1}}\right )-(1+i)^{3/2} \tanh ^{-1}\left (\sqrt{1+i} \sqrt{\frac{x}{x+1}}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.231, size = 305, normalized size = 4.7 \begin{align*}{\frac{ \left ( \sqrt{2}-1+x \right ) \sqrt{2}}{ \left ( 12\,\sqrt{2}-16 \right ) \sqrt{1+\sqrt{2}}}\sqrt{{\frac{x \left ( 1+x \right ) }{ \left ( \sqrt{2}-1+x \right ) ^{2}}}} \left ( \sqrt{-2+2\,\sqrt{2}}\arctan \left ({\frac{\sqrt{-2+2\,\sqrt{2}} \left ( 3+2\,\sqrt{2} \right ) \left ( 3\,\sqrt{2}-4 \right ) \left ( \sqrt{2}+1-x \right ) \left ( \sqrt{2}-1+x \right ) }{ \left ( 4+4\,x \right ) x}\sqrt{{\frac{ \left ( 3\,\sqrt{2}-4 \right ) x \left ( 1+x \right ) \left ( 4+3\,\sqrt{2} \right ) }{ \left ( \sqrt{2}-1+x \right ) ^{2}}}}} \right ) \sqrt{1+\sqrt{2}}\sqrt{2}-2\,\sqrt{-2+2\,\sqrt{2}}\arctan \left ( 1/4\,{\frac{\sqrt{-2+2\,\sqrt{2}} \left ( 3+2\,\sqrt{2} \right ) \left ( 3\,\sqrt{2}-4 \right ) \left ( \sqrt{2}+1-x \right ) \left ( \sqrt{2}-1+x \right ) }{x \left ( 1+x \right ) }\sqrt{{\frac{ \left ( 3\,\sqrt{2}-4 \right ) x \left ( 1+x \right ) \left ( 4+3\,\sqrt{2} \right ) }{ \left ( \sqrt{2}-1+x \right ) ^{2}}}}} \right ) \sqrt{1+\sqrt{2}}+4\,{\it Artanh} \left ({\frac{\sqrt{2}}{\sqrt{1+\sqrt{2}}}\sqrt{{\frac{x \left ( 1+x \right ) }{ \left ( \sqrt{2}-1+x \right ) ^{2}}}}} \right ) \sqrt{2}-6\,{\it Artanh} \left ({\frac{\sqrt{2}}{\sqrt{1+\sqrt{2}}}\sqrt{{\frac{x \left ( 1+x \right ) }{ \left ( \sqrt{2}-1+x \right ) ^{2}}}}} \right ) \right ){\frac{1}{\sqrt{x}}}{\frac{1}{\sqrt{1+x}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{x}}{{\left (x^{2} + 1\right )} \sqrt{x + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.76693, size = 2338, normalized size = 35.97 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{x}}{\sqrt{x + 1} \left (x^{2} + 1\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.50335, size = 1, normalized size = 0.02 \begin{align*} 0 \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]